#######################
# Makefile
#######################
# source object target
SOURCE = tcp_server.c
OBJS = tcp_server.o 
TARGET = server

# compile and lib parameter
CC      := gcc
LIBS    :=
LDFLAGS := -L.
DEFINES :=
INCLUDE := -I.

# link
$(TARGET): $(OBJS)
	$(CC) -o $(TARGET) $(OBJS) -lpthread -lsqlite3 -g

# compile
tcp_server.o: $(SOURCE) server.h
	$(CC) -c $(SOURCE) -lpthread -lsqlite3 -g 

# clean
clean:
	rm -rf *.o $(TARGET)
